﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using GameUtils.Resources;

namespace ThouShaltNotBrick.Logic.Resources
{
    public sealed class FontResources : IResourceContainer
    {
        #region Constants
        private const string FONTS_DIR_PATH = @"Fonts\";

        private const string FONT_28_PATH = FONTS_DIR_PATH + "Font28";
        private const string FONT_20_PATH = FONTS_DIR_PATH + "Font20";
        private const string FONT_16_PATH = FONTS_DIR_PATH + "Font16";
        private const string FONT_12_PATH = FONTS_DIR_PATH + "Font12";
        #endregion

        #region Properties
        public SpriteFont Font28 { get; private set; }
        public SpriteFont Font20 { get; private set; }
        public SpriteFont Font16 { get; private set; }
        public SpriteFont Font12 { get; private set; }
        #endregion

        #region Overriden Methods
        public void Initialize(ContentManager pContentManager)
        {
            Font28 = pContentManager.Load<SpriteFont>(FONT_28_PATH);
            Font20 = pContentManager.Load<SpriteFont>(FONT_20_PATH);
            Font16 = pContentManager.Load<SpriteFont>(FONT_16_PATH);
            Font12 = pContentManager.Load<SpriteFont>(FONT_12_PATH);
        }
        #endregion
    }
}